import logging

# 配置日志
# 设置日志的基本配置，包括日志级别、日志格式和日期格式
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s - %(levelname)s - %(message)s',
    datefmt='%Y-%m-%d %H:%M:%S'
)

def info(str):
    logging.info(str)

# def process_input(user_input):
#     # 记录带有输入值的日志信息
#     logging.info(f"Received input: {user_input}")
#     # 这里可以添加处理输入的逻辑
#     result = user_input.upper()
#     logging.info(f"Processed input to: {result}")
#     return result
#
# if __name__ == "__main__":
#     # 模拟用户输入
#     user_input = "hello world"
#     # 调用处理输入的函数
#     processed_result = process_input(user_input)
#     print(f"Final result: {processed_result}")